/**
 * Copyright (C) 2018-2021
 * All rights reserved, Designed By www.yixiang.co
 */
package co.yixiang.modules.order.param;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import co.yixiang.domain.BaseDomain;
import co.yixiang.modules.product.domain.YxStoreProductAttrValue;
import lombok.*;

import java.util.List;

/**
 * @author xiaoming
 * @date 2022-01-08
 */

@Data
public class YxProduct extends BaseDomain {

    private String attrId;

    private String key;

    private String num;

    private String productId;

    private List<YxStoreProductAttrValue> productSkuInfoShow;


    public void copy(YxProduct source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
